<!DOCTYPE html>
<html>
<head>
<?php 
$this->headMeta()->setName("keywords", SiteConfig::SITE_KEYWORDS);
$this->headMeta()->setName("description", SiteConfig::SITE_DESCRIPTION);
$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8');
?>
<?php echo $this->headMeta(); ?>

<?php echo $this->headTitle(); ?>

<?php 
$this->headLink()->appendStylesheet(SiteConfig::getCommonCssBaseUrl() . "reset.css");
$this->headLink()->appendStylesheet(SiteConfig::getCommonCssBaseUrl() . "text.css");
$this->headLink()->appendStylesheet(SiteConfig::getCommonCssBaseUrl() . "960_12_col.css");
$this->headLink()->appendStylesheet(SiteConfig::getCommonCssBaseUrl() . "screen.css");
?>
<?php echo $this->headLink(); ?>

<?php 
$this->headScript()->appendFile(SiteConfig::getCommonJsBaseUrl() . 'jquery.min.js');
?>
<?php echo $this->headScript();?>

<script type="text/javascript">
createGridder = function() {
    document.body.appendChild(
      document.createElement('script'))
        .src='http://gridder.andreehansson.se/releases/1.3.1/960.gridder.js';
}
// onload="createGridder()"
</script>

</head>
<body>

<div id="header">
	<div class="container_12">
		<div class="grid_12">
			<h1><a href="<?php echo SiteConfig::getSiteBaseUrl(); ?>"><?php echo SiteConfig::SITE_NAME; ?></a><span><?php echo SiteConfig::SITE_ONE_WORD; ?></span></h1>
		</div>
		<div class="clear"></div>
	</div>
</div>
	
<div id="navigation">
	<div class="container_12">
		<div class="grid_9">
			<ul>
			<?php $styles = array('0' => 'class="first"', (count($this->navigates) - 1) => 'class="last"'); ?>
			<?php if (isset($this->navigates) && is_array($this->navigates)): ?>
			<?php foreach ($this->navigates as $index => $item): ?>
				<?php $style = isset($styles[$index]) ? $styles[$index] : ''; ?>
				<li><a <?php echo $style; ?> href="<?php echo $this->url(array('module' => 'default', 'controller' => 'category', 'category' => $item['name']), 'category', true);?>"><?php echo $item['title']; ?></a></li>
			<?php endforeach; ?>
			<?php endif; ?>
			</ul>
		</div>
		<!-- 
		<div id="search" class="grid_3">
			<form id="searchForm" method="get" action="">
				<input type="text" maxlength="255" size="25" name="keyword" value="">
				<a onclick="javascript:;" href="Javascript:;">Go</a>
			</form>
		</div>
		-->
		<div class="grid_12"><hr></div>
		<div class="clear"></div>
	</div>
</div>
	
<div id="content">
	<div class="container_12">

<?php echo $this->layout()->content; ?>

	</div>
</div>
	
<div id="footer">
	<div class="container_12">
		<div class="grid_12"><hr></div>
		<div id="copyright" class="grid_12">
			<p>&copy;2011 yidadang.com 版权所有</p>
		</div>
		<div class="clear"></div>
	</div>
</div>

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21698228-1']);
_gaq.push(['_trackPageview']);

(function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

</body>

</html>